# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=plog
pkgver=1.1.10
pkgrel=0
pkgdesc="Portable, simple and extensible C++ logging library"
url="https://github.com/SergiusTheBest/plog"
arch="noarch"
options="!check"
license="MIT"
makedepends="cmake samurai"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/SergiusTheBest/plog/archive/refs/tags/$pkgver.tar.gz"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

check() {
	return 0
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
b1d55baadbd16bafa5165b05352f367455b51f2eec2102f1ebad2e6a049954d1b87ffdd96811b0acea2313877db1db837f780971fd027d0db683fe42aeb29573  plog-1.1.10.tar.gz
"
